package com.tm.servicemsm.controller;

import com.tm.servicemsm.demos.ChargerLocation;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.HashMap;
import java.util.List;

/**
 * 2024/7/17 充电桩定位功能 Cjj
 */
public class MapService {

    @GetMapping("/searchChargerLocations")
      public List<ChargerLocation> searchChargerLocations(double latitude, double longitude, int radius){

         String url="https://lbs.navinfo.com/open-api/ev/v1/text";
         HashMap<String, String> map = new HashMap<>();
         map.put("key","b3846008d441f89f8967cb43fa2fe7cd");
         map.put("city","河南");


        //实现细节：查询地图服务API以获取位置信息
          return null;//返回充电桩位置列表
      }
}
